package com.hackcloud.shardingjdbc.dao.center;

import com.hackcloud.shardingjdbc.domain.center.ApplyCenterMain;
import org.springframework.data.domain.Slice;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ApplyCenterMainRepository extends JpaRepository<ApplyCenterMain, Long>, JpaSpecificationExecutor<ApplyCenterMain> {
    List<ApplyCenterMain> findByUserName(String userName);

    List<ApplyCenterMain> findByMobile(String mobile);

    ApplyCenterMain findByServiceFlowNo(String serviceFlowNo);

    List<ApplyCenterMain> findByCertNo(String certNo);

}
